package com.qdu.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.qdu.entity.CoursePlan;
import com.qdu.mapper.CoursePlanMapper;
import com.qdu.service.CoursePlanService;
@Service
public class CoursePlanServiceImpl implements CoursePlanService {

	@Autowired
	CoursePlanMapper coursePlanMapper;

	@Override
	public CoursePlan selectCoursePlanById(int id) {
		return coursePlanMapper.selectCoursePlanById(id);
	}

	

	@Override
	public boolean modifyCoursePlan(CoursePlan coursePlan, int tid, int bid, String lpid) {
		return coursePlanMapper.modifyCoursePlan(coursePlan, tid, bid, lpid);
	}

	@Override
	public boolean deleteCoursePlanById(int id) {
		return coursePlanMapper.deleteCoursePlanById(id);
	}

	@Override
	public List<CoursePlan> selectAllCoursePlan() {
		return coursePlanMapper.selectAllCoursePlan();
	}

	@Override
	public CoursePlan selectCoursePlanByThreeId(int bid, int lpid) {
		return coursePlanMapper.selectCoursePlanByThreeId(bid,lpid);
	}



	@Override
	public boolean addCoursePlan(int tid, int bid, char classrmtype, int lpid) {
		return coursePlanMapper.addCoursePlan(tid, bid, classrmtype, lpid);
	}
	
	@Override
	public List<CoursePlan> selectCoursePlanByBid(int bid) {
		return coursePlanMapper.selectCoursePlanByBid(bid);
	}

	@Override
	public List<CoursePlan> selectCoursePlanByTidAndLpid(String tid, int lpid) {
		return coursePlanMapper.selectCoursePlanByTidAndLpid(tid, lpid);
	}

}
